<ul class="nav nav-pills">
    <li role="presentation" class="col-xs-12">
        <h3>搜索</h3>
    </li>
    <li role="presentation" class="col-xs-12">
        <form method="post" role="form" action="{{ url_for('main.search') }}">
            {{ g.search_form.hidden_tag() }}
            <div class="input-group">
                {{ g.search_form.search(class="form-control", placeholder="搜索") }}
                <span class="input-group-btn">
                    <button class="btn btn-default" type="submit">
                        <i class="glyphicon glyphicon-search"></i>
                    </button>
                </span>
            </div>
        </form>
    </li>
</ul>